package com.kb.design.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDate;

@Data
@TableName("bonus_config")
public class BonusConfig  extends BaseEntity{
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 岗位id
     */
    @TableField("post_id")
    private String postId;

    /**
     * 人员id
     */
    @TableField("user_code")
    private String userCode;

    /**
     * Pin目标值
     */
    @TableField("pin_num")
    private Integer pinNum;

    /**
     * 设计绩效奖金
     */
    @TableField("design_bonus")
    private BigDecimal designBonus;

    /**
     * 销售区域
     */
    @TableField("sales_area")
    private String salesArea;

    /**
     * 总销售提成
     */
    @TableField("sales_commission")
    private BigDecimal salesCommission;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate startData;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate endData;
    private String bonusName;
    /**
     *  '删除标志（0代表存在 2代表删除）',
     */
    private String delFlag;

    private Integer type;
}
